package com.corpgovernment.organization.service;

import com.corpgovernment.organization.entity.db.BdFpFfcRelation;
import com.corpgovernment.organization.entity.db.MbOrgUserFfpinfo;
import com.corpgovernment.organization.entity.db.MbPassportWarnInfo;

import java.util.List;

/**
 * 常旅客用户信息service
 *
 * @author wangyujue
 */
public interface IOrganizationUserFfpService {

    /**
     * 查询员工常旅客列表
     *
     * @param uid
     * @return
     */
    List<MbOrgUserFfpinfo> listByUid(String uid);

    /**
     * 保存
     *
     * @param mbOrgUserFfpinfo
     * @return
     */
    boolean save(MbOrgUserFfpinfo mbOrgUserFfpinfo);

    /**
     * 更新
     *
     * @param mbOrgUserFfpinfo
     * @return
     */
    boolean update(MbOrgUserFfpinfo mbOrgUserFfpinfo);

    /**
     * 删除
     *
     * @param id
     * @return
     */
    boolean delete(Long id);


    /**
     * 通过用户id删除常旅客
     *
     * @param uid 用户id
     */
    boolean deleteByUid(String uid);

    boolean deleteByNonEmployeeUid(Long nonEmployeeUid);

    /**
     * 批量查询用户的ffp
     *
     * @param uids
     * @return
     */
    List<MbOrgUserFfpinfo> listByUids(List<String> uids);

    /**
     * 查询非员工FFP
     *
     * @param uids
     * @return
     */
    List<MbOrgUserFfpinfo> listByNonEmployeeIds(List<Long> uids);

    boolean selectFfpInfo(String uid, String airline, String ffpno, Long nonEmployeeId);

    boolean saveList(List<MbOrgUserFfpinfo> mbOrgUserFfpinfoList);

    public List<BdFpFfcRelation> getAirlineNameByAirlineCode (List<String> airlineCodes);

    boolean insertWarnInfo(MbPassportWarnInfo passportWarnInfo);

    boolean getNameConfirmSwitch();
}
